//
//  BanBu_RegisterCell.h
// Halfarea
//
//  Created by banbu3 on 14-2-10.
//
//

#import <UIKit/UIKit.h>
@protocol textFieldEditingDelegate;
@interface BanBu_RegisterCell : UITableViewCell<UITextFieldDelegate>
{
    BOOL isError;
    UIButton *cancelButton;
}
@property (nonatomic,strong)UIView *backView;
@property (nonatomic,strong)UITextField *textField;
@property (nonatomic,strong)UILabel *errorLabel;
@property (nonatomic,assign)id<textFieldEditingDelegate> delegate;


-(void)setError;
-(void)cancelError:(UIGestureRecognizer *)_ges;

@end
@protocol textFieldEditingDelegate <NSObject>

@optional
//-(void)cellTextFieldDidEditing:(UITextField *)textField andCell:(BanBu_RegisterCell *)cell;
-(void)cellTextFieldDidEditing:(UITextField *)textField;
-(void)cellTextFieldBeginEditing:(UITextField *)textField andCell:(BanBu_RegisterCell *)cell;
-(BOOL)cellTextField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string;

@end